package com.eliza.base.views.component.listsAndGrids

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.navigation.NavController

@Composable
fun ListGridsScreen(navController: NavController) {
    var count by remember {
        mutableIntStateOf(0)
    }
    Column {
        Button(onClick = { count = (count + 1) % 3 }) {
            Text(text = "點擊切換$count")
        }
        when (count) {
            1 -> ListScreen(navController)
            0 -> GridScreen(navController)
        }
    }

}

